package com.opensource.baodaoimpl.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.opensource.datamodel.entity.BidInfoEntity;
import com.opensource.datamodel.entity.ProductInfoEntity;
import com.opensource.datamodel.service.BidInfoService;
import com.opensource.baodaoimpl.mapper.BidInfoMapper;
import com.opensource.datamodel.service.DemotableService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 25133
* @description 针对表【b_bid_info(投资记录表)】的数据库操作Service实现
* @createDate 2024-05-07 19:42:52
*/
@DubboService(interfaceClass = BidInfoService.class,version = "1.0")
public class BidInfoServiceImpl extends ServiceImpl<BidInfoMapper, BidInfoEntity>
    implements BidInfoService {

    @Autowired
    private BidInfoMapper bidInfoMapper;


    /** 查询某个产品的投资记录 */
    @Override
    public List<BidInfoEntity> queryBidListByProductId(Integer productId, Integer curPage, Integer pageSize) {
        return bidInfoMapper.queryBidByproductIdLimit(productId,curPage,pageSize);


    }
}




